package com.github.eden.db;

import lombok.Data;

import java.util.List;

@Data
public class DbTable {

    public DbTable(String tableName, String tableComment, List<DbColumn> columns) {
        this.tableName = tableName;
        this.tableComment = tableComment;
        this.columns = columns;
    }

    private String tableName; // 表名
    private String tableComment; // 注释
    private List<DbColumn> columns; // 列
    private Boolean isRelationalTable; // 是否为关系表

    private DbColumn primaryKeyColumn;
    private DbColumn createTimeColumn;
    private DbColumn updateTimeColumn;
    private DbColumn deletedColumn;

    private String objectName;
    private String className;

    private String menuName; // 前端菜单名

}
